package com.ruoyi;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication /*implements CommandLineRunner*/ {

    @Autowired
    ApplicationContext applicationContext;
    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("   _______  _______________  __________\n" +
                "  / ___/ / / / ___/ ___/ _ \\/ ___/ ___/\n" +
                " (__  ) /_/ / /__/ /__/  __(__  |__  ) \n" +
                "/____/\\__,_/\\___/\\___/\\___/____/____/  ");

    }
//
//    @Override
//    public void run(String... args) throws Exception {
//        String[] beanNames = applicationContext.getBeanDefinitionNames();
//        for (String beanName : beanNames) {
//            Object bean = applicationContext.getBean(beanName);
//            System.out.println("Bean名称: " + beanName + ", 类型: " + bean.getClass().getName());
//        }
//    }
}
